package com.quanquan.store.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @ClassName:Banner
 * @Description:banner表
 * @Author:xiongjunbao
 * @Date:2019/3/11 13:16
 * @Version 1.0
 */
@Data
@Entity
@Table(name = "oo_banner")
public class Banner implements Serializable {

    @Id
    @Column(name = "id", unique = true, length = 64)
    private String id;
    @Column(name = "create_time", length = 32)
    private String createTime;
    @Column(name = "update_time", length = 32)
    private String updateTime;
    /**
     * 开始显示时间
     */
    @Column(name = "start_time", length = 32)
    private String startTime;
    /**
     * 结束显示时间
     */
    @Column(name = "end_time", length = 32)
    private String endTime;
    /**
     * 针对前段0显示 1不显示
     */
    @Column(name = "status_show", nullable = false, columnDefinition = "TINYINT default 0")
    private Integer statusShow;
    /**
     * 针对前后段 0显示 1不显示
     */
    @Column(name = "status_remove", nullable = false, columnDefinition = "TINYINT default 0")
    private Integer statusRemove;
    /**
     * banner内容
     */
    @Column(name = "banner_text")
    private String bannerText;
    /**
     * banner介绍
     */
    @Column(name = "banner_desc")
    private String bannerDesc;
    /**
     * 0-不跳转 1-跳转指定url
     */
    @Column(name = "link_type", nullable = false, columnDefinition = "TINYINT default 0")
    private Integer linkType;
    /**
     * 跳转链接
     */
    @Column(name = "link_value")
    private String linkValue;
    /**
     * 排序凭证
     */
    @Column(name = "sort_order", columnDefinition = "INT")
    private Integer sortOrder;

    /**
     * 0下架 1上架
     */
    @Column(name = "status", nullable = false, columnDefinition = "TINYINT default 0")
    private Integer status;

    @Column(name = "adsence_id", length = 64)
    private String adsenceId;

    @Column(name = "activity_id", length = 64)
    private String activityId;

}
